<?
ignore_user_abort(false);

require("config/config.php");
require("lib/lib.mysql.php");
require("lib/lib.common.php");
require("lib/lib.htdb.php");

$db = new db;
$db->connect($db_host, $db_user, $db_pass, $db_name);
$common = new common;
$session = new session($common,$db);

if(!$session->logged_in ||
($common->confirm_uid($_SESSION["uid"],$db)!=0))
   $common->redirect("cms_login.php");

$htdb = new htdb;
$cat_array = $htdb->view_all_categories($db);

ob_start();
require("templates/cms_add_food.htm");
$output = ob_get_contents();
ob_end_clean();

print $output;

$db->close();
?>